import request from '@/utils/request'

// 查询产品出货信息列表
export function listProductShipmentInfo(query) {
  return request({
    url: '/produce/product-shipment-info/list',
    method: 'get',
    params: query
  })
}

// 查询产品出货信息详细
export function getProductShipmentInfo(id) {
  return request({
    url: '/produce/product-shipment-info/' + id,
    method: 'get'
  })
}

// 新增产品出货信息
export function addProductShipmentInfo(data) {
  return request({
    url: '/produce/product-shipment-info',
    method: 'post',
    data: data
  })
}

// 修改产品出货信息
export function updateProductShipmentInfo(data) {
  return request({
    url: '/produce/product-shipment-info',
    method: 'put',
    data: data
  })
}

// 删除产品出货信息
export function delProductShipmentInfo(id) {
  return request({
    url: '/produce/product-shipment-info/' + id,
    method: 'delete'
  })
}

// 逻辑删除产品出货信息
export function removedProductShipmentInfo(id) {
  return request({
    url: '/produce/product-shipment-info/' + id,
    method: 'delete'
  })
}
